package com.zhang.img;

import java.io.File;
import java.io.IOException;

public class Test1 {
    public static void main(String[] args) throws IOException {
//        CompressImgUtil.compressImg("D:\\Desktop\\IMG_20230916_173417.jpg",
//                "D:\\Desktop\\IMG_20230916_173417"+System.currentTimeMillis()+".jpg",
//                200,
//                200,50f);
        ThumbnailUtil.of(new File("D:\\Desktop\\IMG_20230916_173417.jpg"))
                .outputQuality(0.5f).outputFormat(ThumbnailUtil.orgForm)
                .toFile(new File("D:\\Desktop\\IMG_20230916_173417"+System.currentTimeMillis()+".jpg"));
    }
}


